package com.ac.model;

import java.util.List;

import org.springframework.data.mongodb.core.mapping.Document;

import com.ac.util.TreeUtil;

import lombok.Getter;
import lombok.Setter;

@Document(collection = "auth_menu")
@Getter
@Setter
public class AuthMenu extends TreeModelBase {

	String title;
	String url;
	int sort;
	int type;
	String icon;
	String iconName;
	List<String> iconFill;
	boolean nav;
	String desc;

	@Override
	public void insert() {
		TreeUtil.setRootPath(this, AuthMenu.class);
		super.insert();
	}

	@Override
	public void update() {
		TreeUtil.setRootPath(this, AuthMenu.class);
		super.update();
	}

}
